import React from 'react';
import {View} from 'react-native';
import Pagination from './Pagination'

const locale = {
  prevText: '上一步',
  nextText: '下一步',
};

export default class PaginationDemo extends React.Component{
  render() {
    return (
      <View style={{flex:1,alignItems:'center',justifyContent:'center'}}>
        <Pagination total={5} current={1} locale={locale} />

        <Pagination simple total={5} current={1} locale={locale} />

        <Pagination mode="number" total={5} current={3} />

        <Pagination mode="pointer" total={5} current={2} />
      </View>
    );
  }
}
